package com.xdxc.model.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.xdxc.model.dto.GradingResultDTO;
import com.xdxc.utils.JsonTypeHandler;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserAnswerVo implements Serializable {
    @JsonSerialize(using = ToStringSerializer.class)
    private long id;
    @JsonSerialize(using = ToStringSerializer.class)
    private long paperId;
    @JsonSerialize(using = ToStringSerializer.class)
    private long quId;
    private String answerType;
    @TableField(typeHandler = JsonTypeHandler.class)
    private List<String> answerIds;
    private String answerText;
    private Long checkId;
    private GradingResultDTO gradingResultDTO;
    private String gradingStatus;
    private String formattedScore;
}
